import * as Nexus from "@nexus/schema";

export default Nexus.objectType({
  // 名称
  name: "Store",

  // 描述
  description: "店铺",

  // 定义
  definition(t) {
    // 实施节点
    t.implements("Node");
    t.string("name", { description: "名称" });
    t.string("secret", { description: "秘钥" });
    t.string("callBackUrl", { description: "回调地址" });
    t.int("orderBy", { description: "排序" });
    t.string("webhookUrl", { description: "webhook地址" });
  },
});
